<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户列表</title>
	<style>
	.hehe0{
		background-color: red;
		color: white;
	}
	.hehe1{
		background-color: blue;
		color: white;
	}
	.hehe2{
		background-color: yellow;
		color: white;
	}

	
</style>
}
</head>
<body>
	<script >
		var users=[
		{name:"级别",age:"年龄",jiebie:"段位"},
		{name:"李四",age:12,jiebie:"青铜"},
		{name:"王五",age:28,jiebie:"白银"},
		{name:"小明",age:15,jiebie:"王者"},
		{name:"小米",age:18,jiebie:"青铜"},
		{name:"李三",age:48,jiebie:"青铜"},
		];

		var tableStr="<table border=1>";

		for(var i in users){
			tableStr+="<tr class='hehe"+(i%2)+"'>";

			for(var j in users[i]){
				tableStr+="<td>";
				tableStr+=users[i][j];
				tableStr+="</td>";

			}
			tableStr+="</tr>";

		}

		tableStr+="</table>";
		document.body.innerHTML=tableStr;

	</script>

	
</body>
</html>